- TryT <M, A> (Func<K<M, Fin<A>>> runTry)
- Succ (A value)
- Fail (Error value)
- Lift (Pure<A> pure)
- Lift (Fin<A> result)
- Lift (Func<Fin<A>> result)
- Lift (Fail<Error> fail)
- Lift (K<M, A> monad)
- LiftIO (IO<A> monad)
- Match <B> (Func<A, B> Succ, Func<Error, B> Fail)
- Run ()
- MapT <M1, B> (Func<K<M, Fin<A>>, K<M1, Fin<B>>> f)
- MapM <B> (Func<K<M, A>, K<M, B>> f)
- Map <B> (Func<A, B> f)
- Select <B> (Func<A, B> f)
- Bind <B> (Func<A, K<TryT<M>, B>> f)
- Bind <B> (Func<A, TryT<M, B>> f)
- Bind <B> (Func<A, IO<B>> f)
- Bind <B> (Func<A, Pure<B>> f)
- SelectMany <B, C> (Func<A, K<TryT<M>, B>> bind, Func<A, B, C> project)
- SelectMany <B, C> (Func<A, TryT<M, B>> bind, Func<A, B, C> project)
- SelectMany <B, C> (Func<A, K<M, B>> bind, Func<A, B, C> project)
- SelectMany <B, C> (Func<A, Fin<B>> bind, Func<A, B, C> project)
- SelectMany <B, C> (Func<A, Pure<B>> bind, Func<A, B, C> project)
- SelectMany <B, C> (Func<A, IO<B>> bind, Func<A, B, C> project)
- TryTExt
- As <M, A> (this K<TryT<M>, A> ma)
- Flatten <M, A> (this TryT<M, TryT<M, A>> mma)
- SelectMany <M, A, B, C> ( this K<M, A> ma, Func<A, K<TryT<M>, B>> bind, Func<A, B, C> project)
- SelectMany <M, A, B, C> ( this K<M, A> ma, Func<A, TryT<M, B>> bind, Func<A, B, C> project)
- Apply <M, A, B> (this TryT<M, Func<A, B>> mf, TryT<M, A> ma)
- Action <M, A, B> (this TryT<M, A> ma, TryT<M, B> mb)
- TryT <M>
- Succ <A> (A value)
- Fail <A> (Error value)
- lift <A> (Func<Fin<A>> ma)
- lift <A> (Fin<A> ma)
- lift <A> (Pure<A> ma)
- lift <A> (Fail<Error> ma)
- lift <A> (Error ma)
- liftIO <A> (IO<A> ma)
- TryT
- bind <M, A, B> (TryT<M, A> ma, Func<A, TryT<M, B>> f)
- map <M, A, B> (Func<A, B> f, TryT<M, A> ma)
- Succ <M, A> (A value)
- Fail <M, A> (Error value)
- apply <M, A, B> (TryT<M, Func<A, B>> mf, TryT<M, A> ma)
- action <M, A, B> (TryT<M, A> ma, TryT<M, B> mb)
- lift <M, A> (Func<Fin<A>> ma)
- lift <M, A> (Fin<A> ma)
- lift <M, A> (K<M, A> ma)
- lift <M, A> (Pure<A> ma)
- lift <M, A> (Fail<Error> ma)
- lift <M, A> (Error ma)
- liftIO <M, A> (IO<A> ma)
- match <M, A, B> (TryT<M, A> ma, Func<A, B> Succ, Func<Error, B> Fail)
- TryT <M>
record TryT <M, A> (Func<K<M, Fin<A>>> runTry) Source #
TryT
monad transformer, which allows for an optional result.
type | M | Given monad trait |
type | A | Bound value type |
param | runEither | Transducer that represents the transformer operation |
method TryT<M, A> Succ (A value) Source #
Lift a pure value into the monad-transformer
param | value | Value to lift |
returns |
|
method TryT<M, A> Fail (Error value) Source #
Lift a fail value into the monad-transformer
param | value | Value to lift |
returns |
|
method TryT<M, A> Lift (Pure<A> pure) Source #
Lifts a given monad into the transformer
param | pure | Monad to lift |
returns |
|
method TryT<M, A> Lift (Fin<A> result) Source #
Lifts a given monad into the transformer
param | either | Monad to lift |
returns |
|
method TryT<M, A> Lift (Func<Fin<A>> result) Source #
Lifts a given monad into the transformer
param | either | Monad to lift |
returns |
|
method TryT<M, A> Lift (Fail<Error> fail) Source #
Lifts a given monad into the transformer
param | fail | Monad to lift |
returns |
|
method TryT<M, A> Lift (K<M, A> monad) Source #
Lifts a given monad into the transformer
param | monad | Monad to lift |
returns |
|
method TryT<M, A> LiftIO (IO<A> monad) Source #
Lifts a given monad into the transformer
param | monad | Monad to lift |
returns |
|
method K<M, B> Match <B> (Func<A, B> Succ, Func<Error, B> Fail) Source #
Match the bound value and return a result (which gets packages back up inside the inner monad)
param | Succ | Success branch |
param | Fail | Fail branch |
returns | Inner monad with the result of the |
method TryT<M1, B> MapT <M1, B> (Func<K<M, Fin<A>>, K<M1, Fin<B>>> f) Source #
Maps the bound monad
type | M1 | Target monad type |
type | B | Target bound value type |
param | f | Mapping function |
returns | Mapped monad |
method TryT<M, B> MapM <B> (Func<K<M, A>, K<M, B>> f) Source #
Maps the given monad
param | f | Mapping function |
method TryT<M, B> Map <B> (Func<A, B> f) Source #
Maps the bound value
type | B | Target bound value type |
param | f | Mapping function |
returns |
|
method TryT<M, B> Select <B> (Func<A, B> f) Source #
Maps the bound value
type | B | Target bound value type |
param | f | Mapping transducer |
returns |
|
method TryT<M, B> Bind <B> (Func<A, K<TryT<M>, B>> f) Source #
Monad bind operation
type | B | Target bound value type |
param | f | Mapping function |
returns |
|
method TryT<M, B> Bind <B> (Func<A, TryT<M, B>> f) Source #
Monad bind operation
type | B | Target bound value type |
param | f | Mapping function |
returns |
|
method TryT<M, B> Bind <B> (Func<A, IO<B>> f) Source #
Monad bind operation
type | B | Target bound value type |
param | f | Mapping function |
returns |
|
method TryT<M, B> Bind <B> (Func<A, Pure<B>> f) Source #
Monad bind operation
type | B | Target bound value type |
param | f | Mapping function |
returns |
|
method TryT<M, C> SelectMany <B, C> (Func<A, K<TryT<M>, B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
method TryT<M, C> SelectMany <B, C> (Func<A, TryT<M, B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
method TryT<M, C> SelectMany <B, C> (Func<A, K<M, B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
method TryT<M, C> SelectMany <B, C> (Func<A, Fin<B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
method TryT<M, C> SelectMany <B, C> (Func<A, Pure<B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
method TryT<M, C> SelectMany <B, C> (Func<A, IO<B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
Either monad extensions
method TryT<M, A> Flatten <M, A> (this TryT<M, TryT<M, A>> mma) Source #
Monadic join
method TryT<M, C> SelectMany <M, A, B, C> ( this K<M, A> ma, Func<A, K<TryT<M>, B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|
method TryT<M, C> SelectMany <M, A, B, C> ( this K<M, A> ma, Func<A, TryT<M, B>> bind, Func<A, B, C> project) Source #
Monad bind operation
type | B | Intermediate bound value type |
type | C | Target bound value type |
param | bind | Monadic bind function |
param | project | Projection function |
returns |
|